import request from '@/utils/request'

// 查询环卫作业车列表
export function listSanitationVehicle(query) {
	return request({
	  url: '/standingbook/sanitationVehicle/list',
	  method: 'get',
	  params: query
	})
}

// 删除查询环卫作业车列表数据
export function delSanitationVehicle(id) {
	return request({ url: '/standingbook/sanitationVehicle/' + id, method: 'delete' })
}

export function listInspectItem() {
	return request({ url: '/standingbook/sanitationVehicleBill/items', method: 'get' })
}


//环卫作业车导入列表查询
export function listSanitationVehicleImpBase(query) {
	return request({
	  url: '/standingbook/sanitationVehicleImpBase/list',
	  method: 'get',
	  params: query
	})
}
//环卫作业车导入
export function importData(data) {
	return request({ url: '/standingbook/sanitationVehicleImpBase/importData', method: 'post', data: data })
}
//环卫作业车导入列表删除
export function delSanitationVehicleImpBase(id) {
	return request({ url: '/standingbook/sanitationVehicleImpBase/' + id, method: 'delete' })
}


//环卫作业车明细列表
export function listSanitationVehicleImpDetail(query) {
	return request({
	  url: '/standingbook/sanitationVehicleImpDetail/list',
	  method: 'get',
	  params: query
	})
}

// 删除环卫作业车明细
export function delSanitationVehicleImpDetail(id) {
	return request({ url: '/standingbook/sanitationVehicleImpDetail/' + id, method: 'delete' })
}

//异常工单详情
export function listBills(query) {
	return request({ url: '/standingbook/sanitationVehicleBill/bills', method: 'get', params: query })
}